]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Destroy GjsContext before exit
authorPhilip Chimento <philip@endlessm.com>
Tue, 6 Dec 2016 01:31:08 +0000 (17:31 -0800)
committerPhilip Chimento <philip@endlessm.com>
Wed, 7 Dec 2016 19:34:15 +0000 (11:34 -0800)
commit83005e27da264733b54a30df580d6379253cfd62
tree29a6338e2c2f3045b3f16bdd119845d5e0aabc5d
parent56b20ef779eb3054bc558c29ec2d7bcaf63468e5
main: Destroy GjsContext before exit

This will be required in the upcoming version of GJS.

The reference count on ShellGlobal is 2 at this point, because JS holds a
reference due to the "window.global = Shell.Global.get()" line in
ui/environment.js. Therefore, destroy the GjsContext first, then unref
the ShellGlobal object.

Cleaning up ShellGlobal was previously only enabled behind a debug
environment variable, but it should be required now.

https://bugzilla.gnome.org/show_bug.cgi?id=775374
src/main.c
src/shell-global-private.h
src/shell-global.c